package com.ruoyi.car.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用车申请对象 tmd_car_use
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class TmdCarUse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id id */
    @Excel(name = "id id")
    private Long id;

    /** 名称 随便说点 */
    @Excel(name = "名称 随便说点")
    private String context;

    /** 车辆id 车辆id */
    private Long carId;

    /** 紧急程度 0：普通，1：最高，2二级，3：三级 */
    private Long level;

    /** 部门 部门id */
    private Long deptId;

    /** 开始时间 开始时间 */
    private Date startTime;

    /** 结束时间 结束时间 */
    private Date endTime;

    /** 始发地 始发地 */
    private String startPlace;

    /** 目的地 目的地 */
    private String destPlace;

    /** 用车事由 用车事由 */
    private String reason;

    /** 附件 附件 */
    private String file;

    /** 备注 备注 */
    private String notes;

    /** 使用状态 使用状态0使用中,1已归还 */
    @Excel(name = "使用状态 使用状态0使用中,1已归还")
    private Long useStatus;

    /**
     *  创建时间
     */
    private Date createTime;


    /**
     *  创建人姓名
     */
    private String createPeople;


    /**
     * 当前登录用户id
     */
    private String nowName;


    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStartPlace(String startPlace) 
    {
        this.startPlace = startPlace;
    }

    public String getStartPlace() 
    {
        return startPlace;
    }
    public void setDestPlace(String destPlace) 
    {
        this.destPlace = destPlace;
    }

    public String getDestPlace() 
    {
        return destPlace;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setFile(String file) 
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setUseStatus(Long useStatus) 
    {
        this.useStatus = useStatus;
    }

    public Long getUseStatus() 
    {
        return useStatus;
    }

    public String getCreatePeople() {
        return createPeople;
    }

    public void setCreatePeople(String createPeople) {
        this.createPeople = createPeople;
    }

    public String getNowName() {
        return nowName;
    }

    public void setNowName(String nowName) {
        this.nowName = nowName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("context", getContext())
            .append("carId", getCarId())
            .append("level", getLevel())
            .append("deptId", getDeptId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("startPlace", getStartPlace())
            .append("destPlace", getDestPlace())
            .append("reason", getReason())
            .append("file", getFile())
            .append("notes", getNotes())
            .append("useStatus", getUseStatus())
            .toString();
    }
}
